<?php include "../../share/head.html" ?>

<script>
function getQueryVariable(variable)
{
       var query = window.location.search.substring(1);
       var vars = query.split("&");
       for (var i=0;i<vars.length;i++) {
               var pair = vars[i].split("=");
               if(pair[0] == variable){return pair[1];}
       }
       return(false);
}

function show()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
var url="../../actions/get_post.php?page="+getQueryVariable("page");

xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("panel-573569").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET",url,true);
xmlhttp.send();
}

</script>

<body onload="show()">

<div class="container">
	<div class="row clearfix">
		<div class="col-md-12 column">
			<?php include "../../share/nav-m.php" ?>
			<div class="page-header">
				<h1>
					</br>公告 <small></small>
				</h1>
			</div>




<a id="modal-350634" href="#modal-container-350634" role="button" class="btn" data-toggle="modal">发布新公告</a>

<div class="modal fade" id="modal-container-350634" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
				<div class="modal-dialog">
					<div class="modal-content">
						<div class="modal-header">
							 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
							<h4 class="modal-title" id="myModalLabel">
								公告
							</h4>
						
						</div>
						<form role="form" method="post" action="../../actions/admin/post.php">
						<div class="modal-body">
							<div class="form-group">
					 <label for="exampleInputPassword1">标题</label><input type="input" class="form-control" name="title" required />
				</div>
							<div class="form-group">
					 <label for="exampleInputPassword1">内容</label><input type="input" class="form-control" name="content" required />
				</div>
						</div>
						<div class="modal-footer">
							 <button type="summit" class="btn btn-primary">保存</button>
						</div>
						</form>
					</div>
					
				</div>
				
			</div>




			<div class="panel-group" id="panel-573569">

			</div>

		</div>
	</div>
</div>
<?php include "../../share/foot.html" ?>